Class Player
extends NodeJS.EventEmitterexternal NodeJS.EventEmitter
Constructor
constructor(
queue: Mapexternal Map<string, QueueOptionsinterface QueueOptionsutils/QueueOptions>,
guild: Guild,
options?: InitQueueOptionsinterface InitQueueOptionsutils/InitQueueOptions
)guild: Guild,
options?: InitQueueOptionsinterface InitQueueOptionsutils/InitQueueOptions
Creates a new Player.
· queue - The Musicord queue
· guild - current guild
Properties
clientVoiceSettings: typeof ClientVoiceSettingsconst ClientVoiceSettingsstructures/ClientVoiceSettings = {
deaf: boolean,
requestToSpeak: boolean,
suppressed: boolean,
__@iterator@40: () => Generatorexternal Generator<never, void, unknown>,
/** Sets if the client is deaf */
setDeaf: (state: boolean) => void,
/** Generates a speak request if needed */
speakRequest: (state: boolean) => void,
/** Sets the suppressed option */
setSuppressed: (state: boolean) => void
}[src]requestToSpeak: boolean,
suppressed: boolean,
__@iterator@40: () => Generatorexternal Generator<never, void, unknown>,
/** Sets if the client is deaf */
setDeaf: (state: boolean) => void,
/** Generates a speak request if needed */
speakRequest: (state: boolean) => void,
/** Sets the suppressed option */
setSuppressed: (state: boolean) => void
readonly options: AdvancedQueueOptionsinterface AdvancedQueueOptionsutils/AdvancedQueueOptions | any[src]
private _songSearcher: SongSearcherclass SongSearcherstructures/SongSearcher = SongSearcherclass SongSearcherstructures/SongSearcher[src]
Methods
assignVoiceConnection(connection: VoiceConnection): void[src]
Assigns an existing voice connection to the queue.
· connection - https
Returns
undefinedaddPlaylist(url: string): Promiseexternal Promise<void>[src]
Adds playlist songs to the queue Only the first 100 songs will be added.
· url - undefined
Returns
undefinedsetBitrate(value?: number): void[src]
Set the ressource or channel bitrate. Default value is 64000.
· value - undefined
Returns
undefinedcreateVoiceConnection(): void[src]
Creates a voice connection if a voice channel is stored in the queue.
Returns
undefinedgenerateSongSlideBar(): string | undefined[src]
Generates the current song progress bar.
Returns
undefinedprivate _setClientVoiceSettings(voiceChannel: VoiceBasedChannel | undefined): void[src]
Sets the client voice settings for the current guild
Returns
undefinedprivate _handleVoiceState(player: AudioPlayer): Promiseexternal Promise<void>[src]
Awaits player events and handles them.
· player - undefined
Returns
undefinedprivate _createWritableStream(url: string): WritableStream[src]
Creates a writable stream.
· url - undefined
Returns
undefinedprivate _generateFFmpegArgsSchema(url: string): string[][src]
Generates FFmpeg args.
· url - undefined